package com.lazyproject.modules.layer.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

import com.lazyproject.modules.layer.entity.Layer;
import com.lazyproject.modules.layer.mapper.LayerMapper;
import com.lazyproject.modules.layer.service.ILayerService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.ArrayList;
import java.util.List;

/**
 * @author he_ls
 * @since 2025/1/13 15:12
 **/
@Service
@Slf4j
public class LayerServiceImpl extends ServiceImpl<LayerMapper, Layer> implements ILayerService {
    @Resource
    private LayerMapper layerMapper;

    @Override
    public List<Layer> getInfos() {
        Layer layer = new Layer();
        layer.setId(13414);
        layer.setFlag(1);
        layer.setSystem("手动录入的数据");
        List<Layer> list = new ArrayList<>();
        list.add(layer);
        return list;
    }

    @Override
    public List<Layer> getOne(Integer id) {
        log.info("进入serviceimpl中：id :" + id);
        return layerMapper.getOne(id);
    }
}
